function CreateAccountPanel() {
    Client.Camera.FOVSpeed = 0.2;
    Client.Camera.FOV = 70;

    Client.Camera.SetCinematicBorder(true);
    Client.Camera.SetImageEffectActive(0, true);

    Client.GUI.SetCursorActive(true);

    let accountMenu = {
        Cover: 11002,
        Tag: "AccountPanel",
        Title: "[color=#ffffff]%Mod.World.AccountPanel.Title%[/color]",
        Info: "注册&登陆账号以加入游戏",
        Width: 500,
        Align: 1,
        Layout: 1,
        Items: [
            {
                Text: "[b]玩家账号[/b]"
            },
            {
                Input: Client.Player.Local.Name,
                BackgroundColor: "#eeeeee"
            }, {
                Text: "[b]密码[/b]"
            }, {
                Input: "",
                Restrict: "*",
                BackgroundColor: "#eeeeee"
            }, {
                Text: "[i]* 如果账户不存在，则会自动注册[/i]"
            }, {
                Text: "[color=#fa4659][b]登录&注册[/b][/color]",
                BackgroundColor: "#1f4e5f",
                OnClick: () => {
                    let user = Client.NativeMenu.GetItemText(1);
                    let password = Client.NativeMenu.GetItemText(3);

                    if (user.length < 3 || password.length < 3) {
                        Client.Core.Subtitle("用户名或密码长度过短！");
                        return;
                    }

                    Client.Core.NetworkCMD("account_login", user, password);
                }
            }
        ]
    };

    Client.NativeMenu.Create(accountMenu);

    //Test
    //Client.NativeMenu.SetItemText(3, "qwq");
    //accountMenu.Items[5].OnClick();

    //Announce
    let dialogView = {
        Title: "测试说明",
        Text: "欢迎加入测试服务器，当前版本正在更新迭代中...\n敬请期待与反馈！",
        Items: [
            {
                Text: "确认",
                OnClick: () => {
                    Client.DialogView.Next();
                }
            }
        ]
    };

    Client.DialogView.Create(dialogView);
}

function DestroyAccountPanel() {
    if (Client.NativeMenu.GetCurrentTag() == "AccountPanel") {
        //Client.Camera.SetCinematicBorder(false);
        Client.Camera.SetImageEffectActive(0, false);

        Client.GUI.SetCursorActive(false);

        Client.NativeMenu.Destroy();
    }
}